package com.niit.gams.service;

import com.github.pagehelper.PageInfo;
import com.niit.gams.pojo.SysRole;

import java.util.List;

public interface SysRoleService {
  List<SysRole> findRolesByUserId(long uid);
  PageInfo<SysRole> findUsersByPage(Integer curPage, Integer pageSize);
  boolean addRole(SysRole role);

  boolean delRole(Integer rid);

  List<SysRole> findRoles();

  List<Long> findRids(long uid);

  boolean updateUserRoles(Long id, List<Long> rids);
}
